#include<stdlib.h>
#include<stdio.h>

void populate_array(int *array, size_t arraySice, int (*getNextValue)(void))
{
    for (size_t i = 0; i<arraySize; i++)
        array[i] = getNextValue();
}

// 获取随机值